package com.mes.biz.domain;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;

import com.mes.common.core.domain.BaseEntity;
import lombok.Data;
import com.mes.common.utils.log.annotation.FieldRemark;
import com.mes.common.utils.log.annotation.LogField;
import com.mes.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 工序人员对象 biz_process_user
 * @author hwg
 * @email hwg
 * @date 2023-04-27
 */
@Data
public class BizProcessUser extends BaseEntity<BizProcessUser>
{
    private static final long serialVersionUID = 1L;

    /** 工序 */
    @Excel(name = "工序")
    @NotBlank(message = "工序不允许为空")
    @LogField
    @FieldRemark(name = "工序",field = "processId")
    private String processId;

    /** 工序人员 */
    @Excel(name = "工序人员")
    @NotBlank(message = "工序人员不允许为空")
    @LogField
    @FieldRemark(name = "工序人员",field = "userId")
    private String userId;

    /** 租户id */
    @Excel(name = "租户id")
    @NotBlank(message = "租户id不允许为空")
    @LogField
    @FieldRemark(name = "租户id",field = "tenantId")
    private String tenantId;

    /**
     * 用户姓名
     */
    private String name;

    /**
     * 用户编号
     */
    private String no;

    /**
     * 查询条件
     */
    private String userNameOrName;

    public void setProcessId(String processId)
    {
        this.processId = processId;
    }

    public String getProcessId()
    {
        return processId;
    }

    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getUserId()
    {
        return userId;
    }

    public void setTenantId(String tenantId)
    {
        this.tenantId = tenantId;
    }

    public String getTenantId()
    {
        return tenantId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getUserNameOrName() {
        return userNameOrName;
    }

    public void setUserNameOrName(String userNameOrName) {
        this.userNameOrName = userNameOrName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("processId", getProcessId())
            .append("userId", getUserId())
            .append("tenantId", getTenantId())
            .append("remark", getRemark())
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createDept", getCreateDept())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("updateIp", getUpdateIp())
            .append("version", getVersion())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
